package org.genntii.warehousesystem.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.genntii.warehousesystem.domain.entity.Brand;

import java.util.List;

@Mapper
public interface BrandMapper extends BaseMapper<Brand> {

    @Select("select * from brand limit #{page},10")
    List<Brand> showAllByPage(@Param("page") int page);

    @Select("select * from brand")
    List<Brand> showAllBrand();

}
